package br.ufscar.dc.zeus.view;

import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.Gauge;

public class FormSearchingMobiles extends Form {
	private Gauge progressBar;

	private FormSearchingMobiles( String title ) {
		super( title );
		startUp();
	}

	protected void startUp() {
		progressBar = new Gauge( "Aguarde, procurando dispositivos...", false, Gauge.INDEFINITE, Gauge.CONTINUOUS_RUNNING );
		progressBar.setLayout( Gauge.LAYOUT_CENTER );
		append( progressBar );
	}
	
	public static FormSearchingMobiles getInstance() {
		return FormSearchingMobilesSingletonHolder.instance;
	}

	private static class FormSearchingMobilesSingletonHolder {
		private static FormSearchingMobiles instance = new FormSearchingMobiles( "Zeus Download - procurando..." );
	}
}
